package com.bicon.life.core.base.repository.jpa;

import java.io.Serializable;

/**
 * Created by zhoubin on 2016/1/14.
 */
public class Sort implements Serializable {
    private String fieldName;       //属性名
    private String operator;        //排序方式 1:asc 2:desc

    public Sort(String fieldName, String operator){
        this.fieldName = fieldName;
        this.operator = operator;
    }

    public String getFieldName() {
        return fieldName;
    }

    public String getOperator() {
        return operator;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }
}